﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Entity.Order
{
    /// <summary>
    /// 订单商品
    /// </summary>
    [SugarTable("ord_orders_goods")]
    public class OrdersGoods : BaseEntity
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long OrdersId { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public long GoodsId { get; set;}

        /// <summary>
        /// 商品编码
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 商品规格Id
        /// </summary>
        public long GoodsSpecId { get; set; }

        /// <summary>
        /// 商品规格
        /// </summary>
        public string GoodsSpecName { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal GoodsPrice { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int GoodsQuantity { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string GoodsImage { get; set; }

        /// <summary>
        /// 商品总价
        /// </summary>
        public decimal TotalPrice { get; set; } 

        /// <summary>
        /// 是否是赠品
        /// </summary>
        public bool IsGift { get; set; }
    }
}
